package com.xykj.web.controller;

import com.xykj.common.response.Response;
import com.xykj.pojo.dto.SectorFundFlowDto;
import com.xykj.service.SectorFundFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sector-fund-flow")
public class SectorFundFlowController {
    @Autowired
    private SectorFundFlowService sectorFundFlowService;
    @RequestMapping("/getSectorFunflow")
    public Response querySectorFundFlow() {
        List<SectorFundFlowDto> sectorFundFlowDtos = sectorFundFlowService.querySectorFundFlowByStatus();
        return Response.success("查询成功",sectorFundFlowDtos);
    }

}
